﻿<?php get_header(); ?>

	<div id="content-wrapper">
		<div id="content">

			<!-- Post and loop-->	
			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
			<?php if(function_exists('the_views')) { the_views(); } ?>
			<div class="postmeta" id="post-<?php the_ID(); ?>"><!-- Post starts -->	
				<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
				<h5><?php the_time('F j, Y'); ?><?php edit_post_link('Edit', ' <strong>', '</strong>'); ?></h5><h6><?php comments_number('No comment', '1 Comment', '% Comments' );?></h6>
				<div style="clear:both"></div>
			</div>
			
			<div class="entry">
				<?php /* the_content(__('Read the rest of this entry &raquo;'));*/ ?>
				<?php
					if (is_single() or is_page()) {
						the_content();
					} else {
						the_excerpt();
					} 
				?>
			</div>
			<!-- /Post -->	
			
			<?php endwhile; else : ?>	
			<?php endif; ?>
			<!-- /End of loop -->	
			
			<!-- PageNavi - Plugin -->	
			<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
			<!-- /PageNavi - Plugin -->	
			
		</div>
		<!-- /Content -->	


		<?php get_sidebar(); ?>

		<?php get_footer(); ?>

</div>
<!-- /Site Content-->

	<div id="rsslinks">
		<a rel="nofollow" href="feed:<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('template_url'); ?>/img/rsscontent.gif" alt="RSS for content" /></a>
		<a rel="nofollow" href="feed:<?php bloginfo('comments_rss2_url'); ?>"><img src="<?php bloginfo('template_url'); ?>/img/rsscomments.gif" alt="RSS for comments" /></a>
	</div>
	
</div>
<!-- /Wrapper -->

</body>
</html>